package com.epic.followup.repository.app;

import com.epic.followup.model.app.AppPatientModel;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.Optional;

public interface AppPatientRepository extends JpaRepository<AppPatientModel, Long> {

    //根据电话查找用户
    Optional<AppPatientModel> findByTel(String tel);

    //根据openid查找用户
    // Optional<AppPatientModel> findByOpenId(String openid);

}
